package com.way.jacoco.entity.animal;

import com.way.jacoco.entity.animal.observer.IVoiceListener;

/**
 * FileName: AbAnimal.java <br>
 * Description : description <br>
 * Create Time: 2021/11/25 9:53 <br>
 * Update Time: 2021/11/25 9:53 <br>
 *
 * @author <a href='wei.wang@ecarx.com.cn'>wei Wang</ a>
 * @since 2.0.0
 */
public abstract class AbAnimal implements Animal{

    private String name;

    private IVoiceListener voiceListener;

    public AbAnimal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public IVoiceListener getVoiceListener() {
        return voiceListener;
    }

    public void setVoiceListener(IVoiceListener voiceListener) {
        this.voiceListener = voiceListener;
    }
}
